#pragma once
#include <qboxlayout.h>

#include "PageElement.h"
#include "OPeratorinter.h"
#include "item/ItemBase.h"

class CenterWidget :
    public PageElement
{
public:
    CenterWidget(QWidget* parent);
    void addItem(QWidget* widget);
    void comeIn() override;
    void left() override;
    void right() override;
    void up() override;
    void down() override;
    void enter() override;
    void leave() override;
    void esc() override;
private:
    OPeratorinter<ItemBase> m_operator;
    QVBoxLayout* m_mainLayout{ nullptr };
};

